


public class math {

    static int a = 0;

    public int print(int n)
    {
        int[] arr = new int[10];
        if(n%10==0)
        {
            return n;
        }
        arr[a] = n % 10;
        a++;
        return print(n/10);
    }


   /* private int add(int n)
    {
        if(n==1)
        {
            return 1;
        }
        return n + add(n-1);
    }*/


    /*public int work(int n)
    {
        if(n == 1)
        {
            return 1;
        }
        return n*work(n-1);
    }
*/

    public static void main(String[] args) {
    math t1 = new math();
  /*int sum = t1.work(5);
    System.out.println(sum);*/
        /*System.out.println(t1.add(5));*/
        t1.print(1234);
    }
}
